Fix bogus CDATA encoding of description in KML tags.
authorrobertl <robertl>
Mon, 28 Jun 2010 21:25:49 +0000 (21:25 +0000)
committerrobertl <robertl>
Mon, 28 Jun 2010 21:25:49 +0000 (21:25 +0000)
kml.c

diff --git a/kml.c b/kml.c
index 8e41317b489e1525ef08f62e177540f83f20b558..1ce8ff5140be2306d5b4365e3bb60f69bc3dfdb7 100644 (file)
--- a/kml.c
+++ b/kml.c
@@ -413,9 +413,9 @@ kml_write_xmle(const char *tag, const char *fmt, ...)
                if (strspn(tmp_ent, "&'<>\""))
                        needs_escaping = 1;
                gbfprintf(ofd, "<%s>", tag);
-                if (needs_escaping) gbfprintf(ofd, "<![CDATA]");
+                if (needs_escaping) gbfprintf(ofd, "<![CDATA[");
                gbvfprintf(ofd, fmt, args);
-                if (needs_escaping) gbfprintf(ofd, "]]");
+                if (needs_escaping) gbfprintf(ofd, "]]>");
                gbfprintf(ofd, "</%s>\n", tag);
                xfree(tmp_ent);
        }